<div>
<h2>Gallery <?php e($gallery['Gallery']['name']);?></h2>
<?php if(!empty($gallery['Image'])):?>
	<ul class="gallery">
		<?php foreach($gallery['Image'] as $image):?>
			<li class="gallery-item-<?php e($image['id']);?>" style="display:none;"><?php e($html->link('<img src="/files/Image/' . $image['filename'] . '.small' . $ext[$image['id']]['ext'] . '" class="corner iradius10 ishade66 ishadow2"/><br />' . $image['alt'],'/files/Image/' . $image['filename'] . $ext[$image['id']]['ext'],array('class'=>'thickbox', 'rel'=>'gallery-' . $gallery['Gallery']['id'], 'title'=>$image['alt']), false, false));?></li>
			<?php e($javascript->codeBlock('$("li.gallery-item-' . $image['id'] . '").fadeIn(1000);'));?>
		<?php endforeach; ?>
	</ul>
<?php endif; ?>
</div>